-- GENERATED SPELL FOR [Karsius the Ancient Watcher] --


function spell0_21877(pUnit, Event) --@Teron Freed,n/a--
pUnit:FullCastSpellOnTarget(37789,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21877', 568, 1)
end

function Sorts_21877(pUnit, Event)
local choix_sorts_21877 = math.random(0, 0)
if choix_sorts_21877 == 0 then
pUnit:RegisterEvent('spell0_21877', 1, 1)
end
end

function mob21877_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21877', math.random(1500, 3000), 1)
end

function mob21877_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21877_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21877_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21877, 1, 'mob21877_Action')
RegisterUnitEvent(21877, 2, 'mob21877_Leave')
RegisterUnitEvent(21877, 3, 'mob21877_Kill')
RegisterUnitEvent(21877, 4, 'mob21877_Die')
